﻿<Window x:Class="centraldba_dbrestore_utility.frmConnect"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:centraldba_dbrestore_utility"
        mc:Ignorable="d"
        Title="Connect" Height="400" Width="300" WindowStartupLocation="CenterOwner">
    <Grid>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="auto" />
                <RowDefinition Height="auto" />
            </Grid.RowDefinitions>

            <Border Grid.Row="0" BorderThickness="1" BorderBrush="Gainsboro" CornerRadius="3" Margin="2">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <Label Grid.Row="0" Content="Recent Connections" />
                    <ListBox Grid.Row="1" Name="lstRecentConnections" />
                </Grid>
            </Border>

            <Border Grid.Row="1" BorderThickness="1" BorderBrush="Gainsboro" CornerRadius="3" Margin="2">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="auto" />
                        <RowDefinition Height="auto" />
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="auto" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>

                    <Label Content="Server Name" Grid.Column="0" Grid.Row="0" Margin="5" />
                    <Label Content="Database Name" Grid.Column="0" Grid.Row="1" Margin="5" />

                    <TextBox Name="txtServerName" Grid.Column="1" Grid.Row="0" Margin="5" />
                    <ComboBox Name="lstDatabaseName" Grid.Column="1" Grid.Row="1" Margin="5" IsEditable="True" DropDownOpened="lstDatabaseName_DropDownOpened" />
                </Grid>
            </Border>

            <StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Right">
                <Button Name="Connect" Content="Connect" Margin="5" Padding="3" Click="Connect_Click" IsDefault="True" />
                <Button Name="Cancel" Content="Cancel" Margin="5" Padding="3" Click="Cancel_Click" IsCancel="True" />
            </StackPanel>
        </Grid>
    </Grid>
</Window>
